//package com.jd.controller;
//
//
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.security.Principal;
//
//@RestController
//@RequestMapping("user")
//public class UserInfoController {
//
//
//    @GetMapping("/info")
//    public Principal userInfo(Principal principal){
//        return principal;
//    }
//}
